<?php
namespace Admin\Controller;

use Think\Controller;

class CommonController extends Controller
{
    public function __construct(){
       // var_dump($_SESSION);die;
        parent::__construct();
        
        //登录判断
        if(empty($_SESSION['adminInfo'] )){
            $this->error('猪八戒带眼镜---打一个歇后语',U('login/index'));
        }
    }

}